package com.example.gulimall.product.dao;

import com.example.gulimall.product.entity.ProductAttrValueEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.gulimall.product.vo.item.SpuBaseAttrVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * spu属性值
 * 
 * @author zyred
 * @email zyred@163.com
 * @date 2021-08-23 10:31:18
 */
@Mapper
public interface ProductAttrValueDao extends BaseMapper<ProductAttrValueEntity> {

    List<SpuBaseAttrVo> selectBatchByAttrIds(@Param("attrIds") Set<Long> attrIds);

    List<String> selectSaleAttr(@Param("skuId") Long skuId);
}
